package org.feiye.studyday11;

public class Vistor {
	public String name;
	public int age;

	public void showPrice() {
		if (age <= 14) {
			System.out.println(name + "的年龄是：" + age + "," + "门票全免！");
		} else if (age <= 65) {
			System.out.println(name + "的年龄是：" + age + "," + "门票全价：20元");
		} else {
			System.out.println(name + "的年龄是：" + age + "," + "门票半价:10元");
		}
	}
}
